package com.zy.web.controller;

import com.zy.mapper.VersionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 这是那头猪？
 * @version 1.0
 * @description: TODO
 * @date 2022/11/27 15:10
 */
@RestController
public class TextController {
    @Autowired
    VersionMapper versionMapper;
    @GetMapping("/text")
    public String text(){
        //查询数据库版本
        return versionMapper.queryVersion();
    }
}
